class ChartsModel {
  String? msg;
  int? code;
  Data? data;

  ChartsModel({this.msg, this.code, this.data});

  ChartsModel.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class Data {
  int? acceptStay;
  int? acceptAlready;
  int? acceptCancel;
  int? totalNumberQuotedItems;
  int? totalProjectCostSubmitted;
  int? costOfWinningProject;
  List<String>? dataX;
  List<int>? dataY;

  Data(
      {this.acceptStay,
        this.acceptAlready,
        this.acceptCancel,
        this.totalNumberQuotedItems,
        this.totalProjectCostSubmitted,
        this.costOfWinningProject,
        this.dataX,
        this.dataY});

  Data.fromJson(Map<String, dynamic> json) {
    acceptStay = json['acceptStay'];
    acceptAlready = json['acceptAlready'];
    acceptCancel = json['acceptCancel'];
    totalNumberQuotedItems = json['totalNumberQuotedItems'];
    totalProjectCostSubmitted = json['totalProjectCostSubmitted'];
    costOfWinningProject = json['costOfWinningProject'];
    dataX = json['dataX'].cast<String>();
    dataY = json['dataY'].cast<int>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['acceptStay'] = this.acceptStay;
    data['acceptAlready'] = this.acceptAlready;
    data['acceptCancel'] = this.acceptCancel;
    data['totalNumberQuotedItems'] = this.totalNumberQuotedItems;
    data['totalProjectCostSubmitted'] = this.totalProjectCostSubmitted;
    data['costOfWinningProject'] = this.costOfWinningProject;
    data['dataX'] = this.dataX;
    data['dataY'] = this.dataY;
    return data;
  }
}
